package cn.appsys.service.impl;

import cn.appsys.mapper.DictionaryMapper;
import cn.appsys.pojo.Dictionary;
import cn.appsys.service.DictionaryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class DictionaryServiceImpl implements DictionaryService {

    @Resource
    DictionaryMapper dictionaryMapper;


    @Override
    public List<Dictionary> getListByTypeCode(String typeCode) {
        return dictionaryMapper.getListByTypeCode(typeCode);
    }
}
